<?php
ob_start();?><?php
include("config.php");
require_once("auth.php");
$comName=$_POST['txtCompanyName'];
$sname=$_POST['txtSupplierName'];
$city=$_POST['txtCity'];
$add=$_POST['textAdd'];
$state=$_POST['txtState'];
$country=$_POST['txtCountry'];
$postalc=$_POST['txtPostalCode'];
$ph=$_POST['txtPhone'];
$email=$_POST['txtEmail'];
$goods=$_POST['txtTypeGoods'];
$cod=$_POST['textcurrOrderDetails'];
$custid=$_POST['ddlCustomerId'];

$data=mysql_query("insert into suppliers values('','$sname','$comName','$city','$state','$add','$country','$postalc','$ph','$email','$goods','$cod','$custid')");
if($data)
{
header("location: displaysuppliers.php?added=added");
}
else
{
echo mysql_error();
}
?>
<?php ob_flush();
?>